<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript"
	src="/card/common/common.js"></script>
<script type="text/javascript" language="javascript"
	src="/card/common/levelone.js"></script>
<script type="text/javascript" language="javascript" src="leveltwo.js"></script>
<script type="text/javascript" language="javascript"
	src="/card/common/level_init.js"></script>
<title>石家庄一卡通有限公司</title>
<link href="/card/images/css.css" rel="stylesheet" type="text/css">

</head>

<body>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td><img src="/card/images/index_02.jpg" width="945" height="93" /></td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td valign="top"><img src="/card/images/index_04.jpg" width="945"
			height="5" /></td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="21"><img src="/card/images/index_06.jpg" width="21"
			height="32" /></td>
		<td width="903" background="/card/images/index_08.jpg">
		<div align="center"><script type="text/javascript"
			language="javascript">
	initLevelOne();
</script></div>
		</td>
		<td width="21"><img src="/card/images/index_07.jpg" width="21"
			height="32" /></td>
	</tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td></td>
	</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td><script type="text/javascript">
	var pic_width = 945
	var pic_height = 198
	var text_height = 0
	var swfpath = '/card/images/focus.swf'
	var swf_height = pic_height + text_height
	var pics = '/card/images/q1.jpg|/card/images/q2.jpg|/card/images/q3.jpg|/card/images/q4.jpg'
	var links = '#|#|#|#'
	var texts = '||'
	document
			.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'
					+ pic_width + '" height="' + swf_height + '">');
	document
			.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="' + swfpath + '"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
	document
			.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics=' + pics + '&links='
			+ links + '&texts=' + texts + '&borderwidth=' + pic_width
			+ '&borderheight=' + pic_height + '&textheight=' + text_height
			+ '">');
	document
			.write('<embed src="'
					+ swfpath
					+ '" wmode="opaque" FlashVars="pics='
					+ pics
					+ '&links='
					+ links
					+ '&texts='
					+ texts
					+ '&borderwidth='
					+ pic_width
					+ '&borderheight='
					+ pic_height
					+ '&textheight='
					+ text_height
					+ '" menu="false" bgcolor="#ffffff" quality="high" width="'
					+ pic_width
					+ '" height="'
					+ pic_height
					+ '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
</script>

		</td>
	</tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td></td>
	</tr>
</table>
<style type="text/css">
.code {
	background-image: url(code.jpg);
	font-family: Arial;
	font-style: italic;
	color: Red;
	border: 0;
	padding: 2px 3px;
	letter-spacing: 3px;
	font-weight: bolder;
}

.unchanged {
	border: 0;
}
</style>

<script type="text/javascript">
	var code; //在全局 定义验证码
	function createCode() {
		code = "";
		var codeLength = 6;//验证码的长度
		var checkCode = document.getElementById("checkCode");
		var selectChar = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C',
				'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
				'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');//所有候选组成验证码的字符，当然也可以用中文的

		for ( var i = 0; i < codeLength; i++) {

			var charIndex = Math.floor(Math.random() * 36);
			code += selectChar[charIndex];

		}
		//  alert(code);
		if (checkCode) {
			checkCode.className = "code";
			checkCode.value = code;
		}

	}

	function validate() {
		var inputCode = document.getElementById("yanzh").value;
		if (inputCode.length <= 0) {
			alert("请输入验证码！");
			return false;
		} else if (inputCode != code) {
			alert("验证码输入错误！");
			createCode();//刷新验证码
			return false;
		} else {
			return true;
		}

	}
</script>

<td>&nbsp;</td>
<td width="668" valign="top">
<table width="945" height="25" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="179" background="/card/images/index_26.jpg">
		<div align="center" class="baid">卡户信息</div>
		</td>
		<td background="/card/images/index_29.jpg">&nbsp;</td>
		<td background="/card/images/index_29.jpg">&nbsp;</td>

	</tr>
</table>
<form action="update_Merch.action" name="merch" method="post">
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td class="hei" align="right" width="45%">卡户名称：</td>
		<td class="hei" align="left">${merch.mname }</td>
	</tr>
		<tr>
		<td class="hei" align="right" width="45%">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
		<td class="hei" align="left">${merch.codeno }</td>
	</tr>
	<tr>
		<td class="hei" align="right">卡户地址：</td>
		<td class="hei" align="left">${ merch.maddr}</td>
	</tr>
	<tr>
		<td class="hei" align="right">卡户电话：</td>
		<td class="hei" align="left">${merch.mphone }</td>
	</tr>
	<tr>
		<td class="hei" align="right">卡户E-mail：</td>
		<td class="hei" align="left">${ merch.memail}</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="button" value="关闭当前窗口" onclick="if(confirm('关闭当前窗口吗？')){window.close()}"/>
		</td>
	</tr>
</table>

</td>
</tr>
</table>
<script type="text/javascript">

	function updateMerch() {
       if (!validate()) {
			return false;
		} else {
			//设置审核状态
			if (document.getElementById("stat").checked) {
				document.getElementById("mstat").value='1';
			}else{
				document.getElementById("mstat").value='0';
				}
			document.forms["merch"].submit();
			return true;
		}
		
	}
</script>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="945" height="69" border="0" align="center" cellpadding="0" cellspacing="0" class="bk">
  <tr>
    <td width="25"><img src="/card/images/yq_35.jpg" width="25" height="30" /></td>
    <td width="895" background="/card/images/yq_07.jpg" class="heic">友情链接</td>
    <td width="25"><img src="/card/images/yq_36.jpg" width="25" height="30" /></td>
  </tr>
  <tr>
    <td height="37">&nbsp;</td>
    <td ><jsp:include page="/foot.jsp"></jsp:include></td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="108" height="105">
		<div align="center"><img src="images/logo.jpg" width="52"
			height="64" /></div>
		</td>
		<td width="837">
		<div align="center" class="di">石家庄一卡通卡有限公司 （2009-2010）版权所有
		技术支持:网讯科技 冀ICP备05035382号 <br />
		电话：86－0311－88611099 传真：86－0311－88611099 邮箱:ncckefu@163.com<br />
		地址:石家庄市中山西路83号东方大厦1418室</div>
		</td>
	</tr>
</table>
</body>
</html>
